<?xml version="1.0" encoding="UTF-8"?>
<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" 
"http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
<html xmlns="http://www.w3.org/1999/xhtml"
	xmlns:h="http://java.sun.com/jsf/html"
	xmlns:p="http://primefaces.prime.com.tr/ui"
	xmlns:f="http://java.sun.com/jsf/core"
	xmlns:cc="http://java.sun.com/jsf/composite">


        <cc:interface>
             <cc:attribute name="update" required="true" />
        </cc:interface>
	
		<cc:implementation>
		
			<h:panelGrid columns="2">
			
				<h:column>
					<h:graphicImage library="img/login" name="logo99.png"/>
				</h:column>
				
				<h:column>
				
					<h:panelGrid columns="1" >
					
						<h:panelGrid columns="2"  >
						
							<h:outputLabel value="Login:"/>	
							<h:inputText
								id="login"
								value="#{loginMBean.login}"
								required="true"
								requiredMessage="O campo login é obrigatório!"
								maxlength="45"
								size="25"
							/>

							<h:outputLabel value="Senha:" />
							<h:inputSecret
								id="senha"
								value="#{loginMBean.senha}"
								required="true"
								promptLabel="Digite uma senha"
								requiredMessage="O campo senha é obrigatório!"
								maxlength="45"
								size="25"
							/>

						</h:panelGrid>
						
						<h:panelGrid columns="1" style="text-align: right;">
							<p:separator style="width:185px;height:1px;" />
							<p:commandButton
								id="btnLogar"
								value="Entrar"
								type="push"
								image="ui-icon-unlocked"
								action="#{loginMBean.efetuarLogin}"
								update="#{update}"
							/>
						</h:panelGrid>
						
					</h:panelGrid>
					
				</h:column>
				
			</h:panelGrid>
		
		</cc:implementation>
</html>